Page({
  data: {
    showModal: false
  },

  // 显示电话号码弹窗
  showPhoneModal() {
    this.setData({
      showModal: true
    });
  },

  // 隐藏电话号码弹窗
  hideModal() {
    this.setData({
      showModal: false
    });
  },

  // 复制电话号码
  copyPhoneNumber() {
    wx.setClipboardData({
      data: '18600089680',
      success: () => {
        wx.showToast({
          title: '号码已复制',
          icon: 'success'
        });
        this.hideModal();
      }
    });
  }
});